<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<div id="topnav">
  <div class="topnav_right">
    <div class="topnav_hd"> {if $this->data['user']}
      <div class="right">欢迎你回来&nbsp;<strong><a href="{url('User','Order')}" target="_self" style="color: #F30;">{$this->data['user']['username']}</a>!</strong>&nbsp;{if $this->data['return']['rate']>0}您目前帐号余额：<a target="_self" style="color: #0099cc;" href="{url('Return','Index')}">{$this->data['user']['money']}</a>元&nbsp; <a href="{url('Return','Edit')}">申请提现</a>&nbsp;<a href="{url('Return','Index')}" target="_self" style="color: #0099cc;">我的返现</a> {/if}&nbsp;<a href="{url('Post','Edit')}" target="_self" style="color: #0099cc;">发表帖子</a>&nbsp;<a href="{url('Post','Product')}" target="_self" style="color: #0099cc;">分享商品</a>&nbsp; <a href="{url('User','Password')}">密码修改</a> &nbsp;<a href="#" onclick="document.location='{url('User','Logout')}'" target="_self">安全退出</a></div>
      {else}
      <div class="left">欢迎光临{$this->data['site']['site_name']}.</div>
      <div class="right"> <a  href="{url('User','Login')}" target="_self" style="color: #0099cc;">登录</a> <a  href="{url('User','Setup')}" target="_self" style="color: #0099cc;">注册</a></div>
      {/if}
      <div class="clear"></div>
    </div>
  </div>
</div>
<div class="head">
<div id="logo">
  <div class="left"><a href="{$this->data['baseurl']}" title="{$this->data['site']['site_name']}"><img width="423" height="55" src="{$this->data['baseurl']}images/logo.png"></a></div>
  <div id="fw" class="right">
  <form method="post" action="{url('Default','List')}">
    <div class="sp" id="fc">
      <div id="qc">
        <input type="text"  name="k" id="query" placeholder="搜索一下宝贝" autocomplete="off" autofocus="autofocus" accesskey="s">
        <div class="sp" id="aca">▼</div>
      </div>
      <input type="submit" class="sp" id="qb" value="搜 索">
    </div>
    </form>
  </div> 
  <div class="clear"></div>
</div>
<div class="nav">
<div class="tab">
<ul>
{if $this->data['menu']=='index'}
<li class="nowtab" title="网站首页"><a href="{$this->data['baseurl']}" title="网站首页">首页</a></li>
{else}
<li class="linktab" ><a href="{$this->data['baseurl']}" title="网站首页">首页</a></li>
{/if}
 {if $this->data['menu']=='post'}
 <li class="nowtab" title="购物讨论"><a href="{url('Post','List')}" title="购物讨论">购物讨论</a></li>
{else}
<li class="linktab" > <a href="{url('Post','List')}" title="购物讨论">购物讨论</a></li>
{/if}
 {if $this->data['menu']=='hot'}
 <li class="nowtab " title="热门搜索"><a href="{url('Default','Hot')}" title="热门搜索">热门搜索</a></li>
{else}
<li class="linktab"><a href="{url('Default','Hot')}" title="热门搜索">热门搜索</a><span class="hot"></span></li>
{/if}
{if $this->data['return']['rate']>0}
{if $this->data['menu']=='user'}
<li class="nowtab " title="会员中心"><a href="{url('User','Index')}" title="会员中心">会员中心</a></li>
{else}
<li class="linktab"><a href="{url('User','Index')}" title="会员中心">会员中心</a></li>
{/if}
{/if}
{if $this->data['menuList']} 
<!--{loop $this->data['menuList'] $item}-->
<li class="linktab"><a href="{$item['link']}">{$item['name']}</a></li>
<!--{/loop}--> 
{/if}
</ul>
</div>
<div class="clear"></div>
<div id="hotbar">
  <div class="hotsearch left">
    <ul>
      <div class="hotpic" title="搜索关键字"></div>
      <li class="hottext"> {HotKeyList(array(),'id DESC',0,10)}
        {if !empty($pvHotKeyList['rows'])} 
        <!--{loop $pvHotKeyList['rows'] $k $item}--> 
        <a href="{url('Default','List',array('k'=>$item['name']))}" title="{$item['name']}" target="_blank">{$item['name']}</a> 
        <!--{/loop}--> 
        {/if}</li>
      <li class="hottext"><a href="{url('Default','List',array('k'=>'女人'))}">女人</a></li>
      <li class="hottext"><a href="{url('Default','List',array('k'=>'男人'))}">男人</a></li>
      <li class="hottext"><a href="{url('Default','List',array('k'=>'美容'))}">美容</a></li>
      <li class="hottext"><a href="{url('Default','List',array('k'=>'鞋包'))}">鞋包</a></li>
      <li class="hottext"><a href="{url('Default','List',array('k'=>'居家'))}">居家</a></li>
      <li class="hottext"><a href="{url('Default','List',array('k'=>'数码'))}">数码</a></li>
      <li class="hottext"><a href="{url('Default','List',array('k'=>'商城'))}">商城</a></li>
    </ul>
  </div>
</div>
</div>
<div class="clear"></div>
</div>
